﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using Samurai.Client.DataContexts;

namespace Samurai.Client.Commands
{
    public class CancelMovieEditCommand : ICommand
    {
        private EditMovieDataContext _context;

        public CancelMovieEditCommand(EditMovieDataContext context)
        {
            _context = context;
        }

        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;


        public void Execute(object parameter)
        {
            _context.IsClosed = true;
        }
    }
}
